package com.catfive.jet_work.core.design.component

import androidx.compose.foundation.indication
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.size
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.painter.Painter
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp
import com.catfive.jet_work.R

@Composable
fun TopBarIconMenuButton(
    modifier: Modifier = Modifier,
    painter: Painter = painterResource(id = R.drawable.ic_menu_deep),
    onClick: () -> Unit = fun() {}
) {
    IconButton(
        modifier = modifier.indication(
            interactionSource = remember { MutableInteractionSource() },
            indication = null
        ),
        onClick = { onClick() }
    ) {
        Icon(
            tint = MaterialTheme.colorScheme.onSurface,
            painter = painter,
            contentDescription = "",
            modifier = Modifier.size(24.dp)
        )
    }
}